package com.wzc.hc.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wzc.hc.entity.po.Role;
import com.wzc.hc.mapper.RoleMapper;
import com.wzc.hc.service.RoleService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author m1825
 * @description 针对表【role】的数据库操作Service实现
 * @createDate 2025-03-05 16:14:05
 */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role>
        implements RoleService {
    @Resource
    private RoleMapper roleMapper;

    @Override
    public List<Role> getRoleListByUserId(String userId) {
        return roleMapper.getRoleListByUserId(userId);
    }
}




